package com.zy.explore.design.patterns.abstractfactory;

/**
 * 建类说明：抽象工厂测试
 * 当前版本：1.0.0
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年11月20日
 * @since 1.0.0
 */
public class AbstractFactoryTest {

    public static void main(String[] args) {
        MailSenderProvider factory1 = new MailSenderProvider();
        boolean result1 = factory1.getSender().send(new Object());
        System.out.println(result1);

        SmsSenderProvider factory2 = new SmsSenderProvider();
        boolean result2 = factory2.getSender().send(new Object());
        System.out.println(result2);
    }
}
